<?php

namespace App\Model;

class FormidsDaduizhangModel extends BaseModel{

    protected $table = 'formids_daduizhang';
    protected $fillable = [
        'id','formid','openid','created_at','expires_at'
    ];



    public function clear(){
        return $this->db->where('expires_at',time(),'<=')->delete($this->table);
    }

}
